package com.wanxi.spring.cloud.words.mapper;

import com.wanxi.spring.cloud.words.model.Words;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 蒋帆
 * @since 2020-12-21
 */
public interface WordsMapper {

    List<Words> getWords(Map map);

    List<Words> getSelfWords(Map code);

    int addWords(Words words);

    int editWords(Words words);

    int deleteWords(Integer id);

    List<Words> getUserLikeWords(Map map);

    List<Words> getUserCollectWords(Map map);

    long getWordsCount();

    long getSelfWordsCount(String code);

    long getUserLikeWordsCount(Integer userId);

    long getUserCollectWordsCount(Integer userId);

    Words getUserWord(Words words);
}
